import type { Recordable } from '@vben/types';
import { requestClient, downloadClient } from '#/api/request';

// 设备列表
export async function list(data) {
  return requestClient.post('/device/media/device', data);
}

// 目录和文件查询
export async function getDirectory(data) {
  return requestClient.post('/device/media/directory', data);
}

// 修改文件名称
export async function updateName(data) {
  return requestClient.post('/device/media/updateMedia', data);
}

export async function medialnfo(data) {
  return requestClient.post('/device/media/mediaInfo', data);
}

export async function deleteMedia(data) {
  return requestClient.post('/device/media/deleteMedia', data);
}

export async function deleteMore(data) {
  return requestClient.post('/device/media/batchDeleteMedia', data);
}

export async function imgAll(data) {
  return requestClient.post('/device/media/directoryAll', data);
}

// 批量下载
export async function batchDownload(data) {
  return requestClient.post('/device/media/batchDownload', data);
}

// 下载文件夹
export async function directoryDownload(data) {
  return requestClient.post('/device/media/directoryDownload', data);
}